//
//  MainViewController.m
//  SQLite
//
//  Created by yang on 2018/1/9.
//  Copyright © 2018年 YYY. All rights reserved.
//

#import "MainViewController.h"

#import "OCSqlViewController.h"

#import "SwiftSqlViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    OCSqlViewController *ocSql = [[OCSqlViewController alloc] init];
    
    SwiftSqlViewController *swiftSql = [[SwiftSqlViewController alloc] init];

    NSMutableArray *tempArray = [NSMutableArray array];
    NSArray *controllers = @[ocSql, swiftSql];
    
    NSArray *titles = @[@"OC语言数据库", @"Swift语言数据库"];
    for (int i=0; i<2; i++)
    {
        UINavigationController *navVC = [[UINavigationController alloc]initWithRootViewController:controllers[i]];
        UIViewController *currentVC = controllers[i];
        currentVC.title = titles[i];
        [tempArray addObject:navVC];
    }
    [self setViewControllers:tempArray animated:YES];
}


@end
